package com.by.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.by.bean.PayInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.beans.factory.annotation.Autowired;

@Mapper
public interface PaymentMapper extends BaseMapper<PayInfo> {

    @Update("update pay_info set pay_status=#{payStatus} where pay_order_no=#{payOrderNo}")
    void updatePayStatusByPayOrderNo(@Param("payOrderNo") String payOrderNo,@Param("payStatus") String payStatus);

    void savePayInfo(PayInfo payInfo);
}
